<template>
	<view class="mainbgc mainpadding">
		<header-top :messageInfo="{typeFlag:true,message:'添加商品',liner:false}">
			<view class="rightmsg" slot="rightmsg">
				<view class="rightmsg_content">
					<view class="nostrongtext" @click="surebtn">确定</view>
				</view>
			</view>
		</header-top>
		<view class="mainpadding ffffff margin_top">
			<view class="titletext">旺仔牛奶</view>
			<view class="flexleft margin_top">
				<view class="huisetext">生产日期：</view>
				<input type="text" class="inputs xiabiank" placeholder="无生产日期" disabled="" >
				<view class="sanjiaox"></view>
			</view>
			<view class="flexleft margin_top">
				<input type="text" class="inputsl xiabiank juzhong" placeholder="数量" >
				<view class="nostrongtext">箱</view>
				<input type="text" class="inputsl xiabiank juzhong" placeholder="单价" >
				<view class="sanjiaox"></view>
				<input type="text" class="inputsl xiabiank juzhong" placeholder="金额" >
			</view>
			<view class="xiaohuitext margin_top">单位换算：1箱=12瓶</view>
			<view class="xiaohuitext margin_top2">（出）李婷仓库1实际库存：-13个</view>
			<view class="xiaohuitext margin_top2">（出）李婷仓库1可用库存：-13个</view>
			<view class="xiaohuitext margin_top2">（入）李婷仓库1实际库存：-13个</view>
			<view class="xiaohuitext margin_top2">（入）李婷仓库1可用库存：-13个</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				getmsg: {
					ck_id: '6', //仓库id
					sp_code: '', //商品编号
					kh_id: "", //客户id
					type: 1, //1销货单，2退货单
					yg_id: "", //商品id
					mr_sjstate: 'wholesale_price', //默认价格
					goods_ids: [], //id数组群
				},
			}
		},
		onLoad(options) {
			let data = JSON.parse(decodeURIComponent(options.getmsg));
			this.getmsg = data
			console.log(this.getmsg, "跳转页面传参接收")
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.juzhong{
		text-align: center;
	}
	.xiaohuitext{
		font-size: 22rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #666666;
	}
	.inputsl {
		width: 25%;
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		text-align: center;
	}
	.huisetext {
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #999999;
	}

	.xiabiank {
		padding-bottom: 10rpx;
		border-bottom: 2rpx solid rgba(0, 0, 0, 0.03);
	}

	.inputs {
		width: 40%;
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
	}

	.sanjiaox {
		border: 14rpx solid transparent;
		border-top: 14rpx solid #666666;
	}
</style>
